 <script type="text/javascript">
    $(document).ready(function () {
        $("#formulario").validate({
        });
    });
</script>

<?php echo $this->Form->create("Cocktail", array('enctype' => 'multipart/form-data', 'type' => 'file',"id" => "formulario", "action" => "add")); ?>
<?php echo $this->Form->input('Cocktail.name', array('label' => 'name', 'class' => 'required')); ?>
<?php echo $this->Form->input('Cocktail.description', array('label' => 'description', 'class' => '')); ?>
<?php echo $this->Form->file('Cocktail.file', array('accept' => 'jpg')); ?>
<?php echo $this->Form->end("Einfügen") ?>
<br>
<br>
<?php echo $this->Ajax->link('Zurück', array('controller' => 'Cocktails', 'action' => 'index'), array('update' => 'content')); ?>